package com.ljx.springboot003.controller;


import com.ljx.springbootcommon.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ljx.springboot003.service.ClassesService;

@RestController
@RequestMapping("/classes")
public class ClassesController {
	@Autowired
	private ClassesService classesService;
	@GetMapping("/list")
	public R list(){
		return R.ok().data("list",classesService.list());
	}
}
